package org.iweb.html.impl.basic;

import org.iweb.html.api.AbstractHtmlElement;

public class Ul extends AbstractHtmlElement {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9200423093958806296L;

	public Ul addRow(String value){
		append(new Li(value));
		return this;
	}
	
	public Ul addRow(AbstractHtmlElement element){
		append(new Li(element));
		return this;
	}
	
	public Ul addRow(AbstractHtmlElement element,String style){
		Li tmp=new Li(element);
		tmp.setClassStyle(style);
		append(tmp);
		return this;
	}
	
	public static class Li extends AbstractHtmlElement{
		/**
		 * 
		 */
		private static final long serialVersionUID = -8082037370320269659L;

		public Li(String value) {
			super(value);
		}
		
		public Li(AbstractHtmlElement element) {
			append(element);
		}
		
		@Override
		public String getTag() {
			return "li";
		}
	}

}
